<table width=100%>
<% @count = 0 %>
<% @lines_retrieved.each do |line| %>
	<% if line.inappropriate %>
  <% end %>
      <% @count+=1 %>
		  <tr>
        <% if @count % 2 == 0 %>
        <td class="old_lighter">
        <% else %>
        <td class="old_darker">
        <% end %>
        <table cellpadding=0 cellspacing=0 width=100%>
        <tr><td><%=h line.line %></td></tr>
        <tr><td align=right><span class="small">posted by <%= link_to line.user.login, user_path(line.user) %> on <%= line.created_at.strftime('%m/%d/%Y at %I:%M%p') %>
	<% if logged_in? && ((@count == (@lines_retrieved.length + 1) && current_user.id == line.user.id) || current_user.moderator) %>
	 | <%= link_to 'edit', edit_story_line_url(@story, line) %> | <%= link_to 'destroy', story_line_url(@story, line), :confirm => 'Are you sure?', :method => :delete %>
	<% end %>
	</span></td></tr>
        </table>
        </td>
		    <td></td>
		  </tr>
<% end %>
</table>